package com.zzh.webhook.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "gitlab")
public class GitlabConfig {
    private Webhook webhook;
    private Auth auth;

    @Data
    public static class Webhook {
        private String secretToken;
        private String branch;
    }

    @Data
    public static class Auth {
        private String username;
        private String password;
        private String accessToken;
    }
} 